home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / c / c-tools-.000 / c-tools- / c-tools-0.4 / cinfolib.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-13  |  3.7 KB  |  77 lines

  1. /* $Id: cinfolib.h,v 1.5 1995/08/09 10:03:32 sandro Exp $ */
  2.  
  3. /* This program is free software; you can redistribute it and/or modify
  4.    it under the terms of the GNU General Public License as published by
  5.    the Free Software Foundation; either version 2 of the License, or
  6.    (at your option) any later version.
  7.  
  8.    This program is distributed in the hope that it will be useful,
  9.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11.    GNU General Public License for more details.
  12.  
  13.    You should have received a copy of the GNU General Public License
  14.    along with this program; if not, write to the Free Software
  15.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  16.  
  17.  
  18. #ifndef __CINFOLIB_H
  19. #define __CINFOLIB_H
  20.  
  21. struct symbol_entry {
  22.     char *name;
  23.     struct symbol_entry *next;
  24. };
  25.  
  26. struct header_entry {
  27.     char *name;
  28.     struct symbol_entry *head;
  29.     struct header_entry *next;
  30. };
  31.  
  32. struct library_entry {
  33.     char *name;
  34.     struct header_entry *head;
  35.     struct library_entry *next;
  36. };
  37.  
  38. extern char *cinfo_compact_info (char *o, char *i1, char *i2, char *i3, char *i4);
  39. extern void cinfo_decompact_info (char *o, char *i1, char *i2, char *i3, char *i4);
  40. extern char *cinfo_decompact_info_first (char *o, char *i1);
  41.  
  42. extern struct header_entry *cinfo_add_header_to_list (struct header_entry *list, struct header_entry *entry);
  43. extern struct header_entry *cinfo_build_header_entry (char *name);
  44. extern struct header_entry *cinfo_duplicate_header_list (struct header_entry *list);
  45. extern struct header_entry *cinfo_query_header_list_about_header (struct header_entry *list, char *name);
  46. extern struct header_entry *cinfo_query_header_list_about_symbol (struct header_entry *list, char *name);
  47. extern struct header_entry *cinfo_search_header (struct header_entry *list, char *name);
  48. extern struct library_entry *cinfo_add_library_to_list (struct library_entry *list, struct library_entry *entry);
  49. extern struct library_entry *cinfo_build_library_entry (char *name);
  50. extern struct library_entry *cinfo_duplicate_library_list (struct library_entry *list);
  51. extern struct library_entry *cinfo_query_library_list_about_header (struct library_entry *list, char *name);
  52. extern struct library_entry *cinfo_query_library_list_about_library (struct library_entry *list, char *name);
  53. extern struct library_entry *cinfo_query_library_list_about_symbol (struct library_entry *list, char *name);
  54. extern struct library_entry *cinfo_search_library (struct library_entry *list, char *name);
  55. extern struct symbol_entry *cinfo_add_symbol_to_list (struct symbol_entry *list, struct symbol_entry *entry);
  56. extern struct symbol_entry *cinfo_build_symbol_entry (char *name);
  57. extern struct symbol_entry *cinfo_duplicate_symbol_list (struct symbol_entry *list);
  58. extern struct symbol_entry *cinfo_query_symbol_list_about_symbol (struct symbol_entry *list, char *name);
  59. extern struct symbol_entry *cinfo_search_symbol (struct symbol_entry *list, char *name);
  60. extern void cinfo_explore_header_list (struct header_entry *list);
  61. extern void cinfo_explore_library_list (struct library_entry *list);
  62. extern void cinfo_explore_symbol_list (struct symbol_entry *list);
  63. extern void cinfo_free_header_entry (struct header_entry *entry);
  64. extern void cinfo_free_library_entry (struct library_entry *entry);
  65. extern void cinfo_free_symbol_entry (struct symbol_entry *entry);
  66. extern void cinfo_recursive_free_header_list (struct header_entry *list);
  67. extern void cinfo_recursive_free_library_list (struct library_entry *list);
  68. extern void cinfo_recursive_free_symbol_list (struct symbol_entry *list);
  69.  
  70. #endif /* __CINFOLIB_H */
  71.  
  72. /*
  73.  * Local Variables:
  74.  * truncate-lines: t
  75.  * End:
  76.  */
  77.